export const fieldList = [
  {
    field: "supplierIds",
    type: "select",
    options: {
      placeholder: "平台",
    },
  },
  {
    field: "supplierIds",
    type: "select",
    options: {
      placeholder: "站点",
    },
  },
  {
    field: "supplierIds",
    type: "select",
    options: {
      placeholder: "店铺",
    },
  },
  {
    field: "dateRange",
    type: "dateTimeRange",
    style: { width: "360px" },
    select: [
      { label: "添加时间", value: "ticketAt" },
      { label: "交易时间", value: "createdAt" },
    ],
    selectStyle: { width: "120px" },
    itemProps: {
      startPlaceholder: "创建最早时间",
      endPlaceholder: "创建最晚时间",
    },
  },
  {
    field: "supplierIds",
    type: "select",
    options: {
      placeholder: "店铺类型",
    },
  },
  {
    field: "supplierIds",
    type: "select",
    options: {
      placeholder: "销售人员",
    },
  },
  {
    field: "supplierIds",
    type: "select",
    options: {
      placeholder: "业务类型",
    },
  },
  {
    field: "supplierIds",
    type: "select",
    options: {
      placeholder: "货币",
    },
  },
  {
    field: "supplierIds",
    type: "input",
    options: {
      placeholder: "收款账号",
    },
  },
  {
    field: "supplierIds",
    type: "input",
    options: {
      placeholder: "流水号",
    },
  },
];

export const payonnerColumns = () => {
  return [
    {
      title: "交易时间",
      field: "transactionAt",
      minWidth: 100,
    },
    {
      title: "类型",
      field: "todo",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.transactionType.label}</div>;
        },
      },
    },
    {
      title: "业务账号",
      field: "todo",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.accountHierarchy.label}</div>;
        },
      },
    },
    {
      title: "流水号",
      field: "transactionId",
      minWidth: 100,
    },
    {
      title: "交易状态",
      field: "todo",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.transactionStatus.label}</div>;
        },
      },
    },
    {
      title: "业务类型",
      field: "todo",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.businessType.label}</div>;
        },
      },
    },
    {
      title: "币种",
      field: "currency",
      minWidth: 100,
    },
    {
      title: "入账金额",
      field: "inAmount",
      minWidth: 100,
    },
    {
      title: "出账金额",
      field: "outAmount",
      minWidth: 100,
    },
    {
      title: "手续费币种",
      field: "chargeCurrency",
      minWidth: 100,
    },
    {
      title: "手续费",
      field: "chargeAmount",
      minWidth: 100,
    },
    {
      title: "余额币种",
      field: "balanceCurrency",
      minWidth: 100,
    },
    {
      title: "交易后余额",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "交易备注",
      field: "remark",
      minWidth: 100,
    },

    {
      title: "交易详情",
      field: "todo",
      minWidth: 100,
      slots:{
        default:'details'
      }
    },
  ];
};
//PingPong
export const pingpongColumns = () => {
  return [
    {
      title: "交易时间",
      field: "transactionAt",
      minWidth: 100,
    },
    {
      title: "交易类型",
      field: "todo",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.transactionType.label}</div>;
        },
      },
    },
    {
      title: "业务账号",
      field: "todo",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.accountHierarchy.label}</div>;
        },
      },
    },
    {
      title: "流水号",
      field: "transactionId",
      minWidth: 100,
    },
    {
      title: "业务类型",
      field: "businessType",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.businessType.label}</div>;
        },
      },
    },
    {
      title: "业务描述",
      field: "description",
      minWidth: 100,
    },
    {
      title: "入账币种",
      field: "currency",
      minWidth: 100,
    },
    {
      title: "入账金额",
      field: "inAmount",
      minWidth: 100,
    },
    {
      title: "出账币种",
      field: "currency",
      minWidth: 100,
    },
    {
      title: "出账金额",
      field: "outAmount",
      minWidth: 100,
    },
    {
      title: "平台",
      field: "platform",
      minWidth: 100,
    },
    {
      title: "店铺名称",
      field: "shop",
      minWidth: 100,
    },
    {
      title: "交易前余额",
      field: "beforeBalance",
      minWidth: 100,
    },
    {
      title: "交易后余额",
      field: "afterBalance",
      minWidth: 100,
    },
  ];
};

//万里汇
export const wanlihuiColumns = () => {
  return [
    {
      title: "交易时间",
      field: "transactionAt",
      minWidth: 100,
    },
    {
      title: "交易类型",
      field: "transactionType",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row?.transactionType?.label || "-"}</div>;
        },
      },
    },
    {
      title: "业务账号",
      field: "businessAccount",
      minWidth: 100,
    },
    {
      title: "流水号",
      field: "transactionId",
      minWidth: 100,
    },
    {
      title: "业务类型",
      field: "businessType",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.businessType.label}</div>;
        },
      },
    },
    {
      title: "交易状态",
      field: "transactionStatus",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row.transactionStatus.label}</div>;
        },
      },
    },
    {
      title: "入账币种",
      field: "accountCurrency",
      minWidth: 100,
    },
    {
      title: "入账金额",
      field: "transactionAmount",
      minWidth: 100,
    },
    {
      title: "出账币种",
      field: "settlementCurrency",
      minWidth: 100,
    },
    {
      title: "出账金额",
      field: "settlementAmount",
      minWidth: 100,
    },
    {
      title: "手续费币种",
      field: "chargeCurrency",
      minWidth: 100,
    },
    {
      title: "手续费",
      field: "chargeAmount",
      minWidth: 100,
    },
    {
      title: "汇率",
      field: "exchangeRate",
      minWidth: 100,
    },
    {
      title: "余额币种",
      field: "balanceCurrency",
      minWidth: 100,
    },
    {
      title: "交易后余额",
      field: "accountBalance",
      minWidth: 100,
    },
    {
      title: "付款/收款人信息",
      field: "payerName",
      minWidth: 100,
      fixed: "right",
      slots: {
        default: "fundMoveDetail",
      },
    },
  ];
};
//连连
export const lianlianColumns = () => {
  return [
    {
      title: "交易时间",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "流水类型",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "交易类型",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "业务账号",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "业务类型",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "流水号",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "业务类型",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "入账币种",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "入账金额",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "出账币种",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "出账币种",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "出账金额",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "手续费币种",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "手续费金额",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "境外银行卡号交易对手名称",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "余额币种",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "交易后余额",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "平台",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "站点",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "亚马逊入账来源",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "亚马逊结算币种",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "亚马逊结算金额",
      field: "todo",
      minWidth: 100,
    },
  ];
};
//空中云汇
export const cloudColumns = () => {
  return [
    {
      title: "交易时间",
      field: "tradeAt",
      minWidth: 100,
    },
    {
      title: "交易类型",
      field: "transactionType",
      minWidth: 100,
      slots: {
        default: ({ row }) => {
          return <div>{row?.transactionType?.label || "-"}</div>;
        },
      },
    },
    {
      title: "业务账号",
      field: "todo",
      minWidth: 100,
    },
    {
      title: "流水号",
      field: "transactionId",
      minWidth: 100,
    },
    {
      title: "业务类型",
      field: "businessType",
      minWidth: 100,
    },

    {
      title: "入账币种",
      field: "enterCurrency",
      minWidth: 100,
    },
    {
      title: "入账金额",
      field: "enterAmount",
      minWidth: 100,
    },
    {
      title: "出账币种",
      field: "outCurrency",
      minWidth: 100,
    },
    {
      title: "出账金额",
      field: "outAmount",
      minWidth: 100,
    },
    {
      title: "手续费币种",
      field: "chargeCurrency",
      minWidth: 100,
    },
    {
      title: "手续费",
      field: "chargeAmount",
      minWidth: 100,
    },
    {
      title: "汇率",
      field: "exchangeRate",
      minWidth: 100,
    },
    {
      title: "余额币种",
      field: "balanceCurrency",
      minWidth: 100,
    },
    {
      title: "交易后余额",
      field: "balanceAmount",
      minWidth: 100,
    },
    {
      title: "交易描述",
      field: "describe",
      minWidth: 100,
    },
  ];
};
